{% extends "base.html" %}
{% block main %}
        <div id="page-wrapper" style="min-height: 700px;">
            <div class="container-fluid">
                <!-- Page Heading -->
                <div class="row">
                    <div class="col-lg-12">
                        <ul class="nav nav-tabs">
                            <li class="active">
                                <a href="#local" name='local' data-toggle="tab">国内版</a>
                            </li>
                            <li>
                                <a href="#internet" name='internet' data-toggle="tab">国际版</a>
                            </li>
                        </ul>
                        <div class="tab-content">
                            <div class="tab-pane active" id="local">
                                <h1 class="page-header">
                                    国内版发布表
                                </h1>
                                <ol class="breadcrumb">
                                    <li>
                                        <i class="fa fa-dashboard"></i>  <a href="../index">Dashboard</a>
                                    </li>
                                    <li class="active">
                                        <i class="fa fa-table"></i> 国内版
                                    </li>
                                </ol>
                                <div class="row">
                                    <div class="col-lg-12">
                                        <div class="table-responsive">
                                            <table class="table table-bordered table-hover table-striped" style="height:10px;">
                                                <thead>
                                                    <tr class="info">
                {#                                        <th class="col-lg-1" style="text-align: center">#</th>#}
                                                        <th class="col-lg-1" style="text-align: center">版本</th>
                                                        <th class="col-lg-3" style="text-align: center">Android</th>
                                                        <th class="col-lg-3" style="text-align: center">IOS</th>
                                                        <th class="col-lg-1" style="text-align: center">代码路径</th>
                                                        <th class="col-lg-1" style="text-align: center">Server</th>
                                                        <th class="col-lg-3" style="text-align: center">更新备注</th>
                                                    </tr>
                                                </thead>
                                                <tbody>
                                                    {% for show in treleaselist.object_list %}
                                                        <tr>
                                                            <div>
                {#                                                <td style="text-align: center">{{ show.id }}</td>#}
                                                                <td style="text-align: center; vertical-align:middle">{{ show.version }}</td>
                                                                <td style="text-align: left; vertical-align:middle">{{ show.android }}</td>
                                                                <td style="text-align: left; vertical-align:middle">{{ show.ios }}</td>
                                                                <td style="text-align: left; vertical-align:middle">{{ show.path_code }}</td>
                                                                <td style="text-align: center; vertical-align:middle">{{ show.version_server }}</td>
                                                                <td style="text-align: left; vertical-align:middle">{{ show.remarks }}</td>
                                                            </div>
                                                        </tr>
                                                    {% empty %}
                                                        <tr>
                                                            暂无数据
                                                        </tr>
                                                    {% endfor %}
                                                </tbody>
                                            </table>
                                            <div class="row col-lg-12" style="text-align: center">
                                                <span class="step-links">
                                                    <ul class="pager">
                                                     {% if treleaselist.has_previous %}
                                                     <li class="prev">
                                                         <a href="?page={{ treleaselist.previous_page_number }}" class="previous">上一页</a>
                                                     </li>
                                                     {% endif %}
                                                     第 {{ treleaselist.number }}/{{ treleaselist.paginator.num_pages }} 页
                                                     {% if treleaselist.has_next %}
                                                         <li class="prev">
                                                             <a href="?page={{ treleaselist.next_page_number }}">下一页</a>
                                                         </li>
                                                     {% endif %}
                                                        <li class="next"><a>共{{ trelease.count }}条</a>
                                                    </ul>
                                                </span>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="tab-pane" id="internet">
                                <h1 class="page-header">
                                    国际版发布表
                                </h1>
                                <ol class="breadcrumb">
                                    <li>
                                        <i class="fa fa-dashboard"></i>  <a href="../index">Dashboard</a>
                                    </li>
                                    <li class="active">
                                        <i class="fa fa-table"></i> 国际版
                                    </li>
                                </ol>
                                <div class="row">
                                    <div class="col-lg-12">
                                        <div class="table-responsive">
                                            <table class="table table-bordered table-hover table-striped" style="height:10px;">
                                                <thead>
                                                    <tr class="info">
                {#                                        <th class="col-lg-1" style="text-align: center">#</th>#}
                                                        <th class="col-lg-1" style="text-align: center">版本</th>
                                                        <th class="col-lg-3" style="text-align: center">Android</th>
                                                        <th class="col-lg-3" style="text-align: center">IOS</th>
                                                        <th class="col-lg-1" style="text-align: center">代码路径</th>
                                                        <th class="col-lg-1" style="text-align: center">Server</th>
                                                        <th class="col-lg-3" style="text-align: center">更新备注</th>
                                                    </tr>
                                                </thead>
                                                <tbody>
                                                    {% for show_i in ireleaselist.object_list %}
                                                        <tr>
                                                            <div>
                {#                                                <td style="text-align: center">{{ show.id }}</td>#}
                                                                <td style="text-align: center; vertical-align:middle">{{ show_i.version }}</td>
                                                                <td style="text-align: left; vertical-align:middle">{{ show_i.android }}</td>
                                                                <td style="text-align: left; vertical-align:middle">{{ show_i.ios }}</td>
                                                                <td style="text-align: left; vertical-align:middle">{{ show_i.path_code }}</td>
                                                                <td style="text-align: center; vertical-align:middle">{{ show_i.version_server }}</td>
                                                                <td style="text-align: left; vertical-align:middle">{{ show_i.remarks }}</td>
                                                            </div>
                                                        </tr>
                                                    {% empty %}
                                                        <tr>
                                                            暂无数据
                                                        </tr>
                                                    {% endfor %}
                                                </tbody>
                                            </table>
                                            <div class="row col-lg-12" style="text-align: center">
                                                <span class="step-links">
                                                    <ul class="pager">
                                                     {% if ireleaselist.has_previous %}
                                                     <li class="prev">
                                                         <a href="?page={{ ireleaselist.previous_page_number }}" class="previous">上一页</a>
                                                     </li>
                                                     {% endif %}
                                                     第 {{ ireleaselist.number }}/{{ ireleaselist.paginator.num_pages }} 页
                                                     {% if ireleaselist.has_next %}
                                                         <li class="prev">
                                                             <a href="?page={{ ireleaselist.next_page_number }}">下一页</a>
                                                         </li>
                                                     {% endif %}
                                                        <li class="next"><a>共{{ irelease.count }}条</a></li>
                                                    </ul>
                                                </span>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                       </div>
                    </div>
                </div>
        </div>
    </div>
    <script src="../static/js/jquery.js"></script>
{#    <script src="../static/js/sweet-alert.min.js"></script>#}
{#    <link rel="stylesheet" type="text/css" href="../static/css/sweet-alert.css">#}

    <!-- Bootstrap Core JavaScript -->
    <script src="../static/js/bootstrap.min.js"></script>
{% endblock %}

</body>

</html>
